import request from "../utils/request"
export const articleList = (page, size) => {
    return request({
        url: `/article/list/?page=${page}&size=${size}`,
        method: "GET",
        query: {
            page,
            size
        }
    })
}
export const createArticle = (title, content) => {
    return request({
        url: '/article/create',
        method: 'POST',
        data: {
            title,
            content
        }
    })
}
export const DelArticle =(id)=>{
    return request({
        url:`/article/delete/${id}`,
        method:'GET'
    })
}